//复制统计
function copy(obj, channel,$key) {
  var href = window.location.href;
  var channel = channel;
  //关键词获取
  var str = href.split("&utm_content")[0];
  var strs = str.split("&utm_term=")[1];
  //var key = decodeURIComponent(strs);
  var url = "http://neworder.ccygcj.com/user/copy/create";
  var wechat = $(obj).last().text();
  $.ajax({ 
    dataType: 'jsonp',
    jsonp: 'callback',
    data: { href: href, channel: channel, wechat: wechat, key: $key },
    url: url,

    success: function (data) {
      //console.log(data)
    },
    error: function () { }
  })
}



